import { type } from "jquery"

const blog = {
    getCode: {
        name: '获取验证码',
        type: 'post',
        path: '/mail/code',
    }
}
const core = {
    tagIds: {
        name: '获取标签集合',
        type: 'post',
        path: '/tag/ids',
    },
    getTags: {
        name: '获取标签',
        type: 'get',
        path: '/tag/list',
    },
    getTag: {
        name: '获取标签(其他用户)',
        type: 'get',
        path: '/tag/list/user',
    },
    getTagsCount: {
        name: '获取标签',
        type: 'get',
        path: '/tag/info',
    },
    delete: {
        name: '删除标签同步更新文章',
        type: 'get',
        path: '/tag/delete',
    },
    add: {
        name: '新增标签',
        type: 'get',
        path: '/tag/add',
    },
    update: {
        name: '修改标签',
        type: 'get',
        path: '/tag/update',
    },
    save: {
        name: '保存文章',
        type: 'post',
        path: '/document/save',
    },
    searchTitle: {
        name: '通过标题模糊查询',
        type: 'get',
        path: '/document/search',
    },
    documentList: {
        name: '文章分页',
        type: 'post',
        path: '/document/list',
    },
    getEditDocument: {
        name: '获取文章作为更新',
        type: 'get',
        path: '/document/edit',
    },
    setDocumentStatus: {
        name: '修改文章状态',
        type: 'get',
        path: '/document/status',
    },
    removeDocument: {
        name: '删除文章',
        type: 'get',
        path: '/document/delete',
    },
    home: {
        name: '主页文章',
        type: 'get',
        path: '/document/home',
    },
    bottom: {
        name: '主页底部文章',
        type: 'get',
        path: '/document/bottom',
    },
    getTagsAndCount: {
        name: '文章标签和评论数',
        type: 'get',
        path: '/document/doc/detail',
    },
    getDocumentViews: {
        name: '文章标签和评论数',
        type: 'get',
        path: '/document/count',
    },
    async: {
        name: '同步文章',
        type: 'post',
        path: '/document/async',
    },
    getBytag: {
        name: '获取标签文章',
        type: 'get',
        path: '/search/tag',
    },
    randomTitle: {
        name: '随机获取标题',
        type: 'get',
        path: '/document/title',
    }
}
const file = {
    list: {
        name: '获取文件目录',
        type: 'post',
        path: '/file/bucket/files'
    },
    mkdir: {
        name: '新建文件夹',
        type: 'get',
        path: '/file/bucket/create'
    },
    remove: {
        name: '删除文件',
        type: 'post',
        path: '/file/bucket/remove'
    },
    getNickname: {
        name: '文件名映射',
        type: 'get',
        path: '/user/names'
    },
    getShareInfo: {
        name: '文件共享信息',
        type: 'get',
        path: '/file/bucket/share/info'
    },
    shareChange: {
        name: '文件共享',
        type: 'post',
        path: '/file/bucket/share'
    }
}
const search = {
    recommend: {
        name: '推荐两篇文章',
        type: 'post',
        path: '/search/recommend'
    },
    searchTitle: {
        name: '搜索标题',
        type: 'get',
        path: '/search/title/all'
    },
    searchUserTitle: {
        name: '搜索标题',
        type: 'get',
        path: '/search/title'
    },
    keywords: {
        name: '获取关键字',
        type: 'get',
        path: '/file/ik/keyword'
    },
    allKeywords: {
        name: '获取所有关键字',
        type: 'get',
        path: '/file/ik/words'
    },
    search: {
        name: '搜索',
        type: 'get',
        path: '/search/all'
    },
    analyzer: {
        name: '分词',
        type: 'get',
        path: '/search/analyzer'
    },
    poetry: {
        name: '诗词',
        type: 'get',
        path: '/photo/poetry'
    },
    randomPhoto: {
        name: '随机图片',
        type: 'get',
        path: '/photo/random'
    },
    searchPhoto: {
        name: '搜索标题图片',
        type: 'get',
        path: '/photo/search'
    }
}
const manage = {
    users: {
        name: '用户列表',
        type: 'post',
        path: '/user/list'
    },
    vedio: {
        name: '用户背景视频',
        type: 'get',
        path: '/quote/path'
    },
    documents: {
        name: '文章列表',
        type: 'post',
        path: '/document/all'
    },
    comments: {
        name: '评论列表',
        type: 'post',
        path: '/comment/all'
    },
    messages: {
        name: '消息列表',
        type: 'post',
        path: '/message/all'
    },
    push: {
        name: '消息列表',
        type: 'post',
        path: '/message/push'
    },
    offence: {
        name: '举报内容',
        type: 'post',
        path: '/message/save'
    }
}
export default { blog,file,core,search,manage }